package com.ruoyi.asset.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 领用归还记录对象 asset_transaction_record
 * 
 * @author ruoyi
 * @date 2023-04-06
 */
@Data
@ApiModel(value = "AssetTransactionRecord", description = "用户归还实体")
public class AssetTransactionRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @TableId
    /** 交易编号 */
    private String transactionId;

    /** 资产编号 */
    @Excel(name = "资产编号")
    @ApiModelProperty("资产编号")
    private String assetNumber;

    /** 资产名称 */
    @Excel(name = "资产名称")
    @ApiModelProperty("资产名称")
    private String assetName;

    /** 交易类型 */
    @Excel(name = "交易类型")
    @ApiModelProperty("交易类型")
    private String transactionType;

    /** 交易日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交易日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("交易日期")
    private Date transactionDate;

    /** 借用人 */
    @Excel(name = "使用人")
    @ApiModelProperty("使用人")
    private String borrower;

    /** 借用人姓名 */
    @Excel(name = "使用人姓名")
    @ApiModelProperty("使用人姓名")
    private String borrowerName;

    /** 使用部门 */
    @Excel(name = "使用部门")
    @TableField(exist = false)
    @ApiModelProperty("使用部门")
    private String department;

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    /** 归还日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("归还日期")
    private Date returnDate;

    /** 归还人 */
    @Excel(name = "归还人")
    @ApiModelProperty("归还人")
    private String returner;

    /** 归还人姓名 */
    @Excel(name = "归还人姓名")
    @ApiModelProperty("归还人姓名")
    private String returnerName;

    /** 归还oa编号 */
    @Excel(name = "归还人")
    @ApiModelProperty("归还人")
    private String returnOaNumber;

    public String getReturnOaNumber() {
        return returnOaNumber;
    }

    public void setReturnOaNumber(String returnOANumber) {
        this.returnOaNumber = returnOANumber;
    }

    public String getAssetName() {
        return assetName;
    }

    public void setAssetName(String assetName) {
        this.assetName = assetName;
    }

    public String getBorrowerName() {
        return borrowerName;
    }

    public void setBorrowerName(String borrowerName) {
        this.borrowerName = borrowerName;
    }

    public String getReturnerName() {
        return returnerName;
    }

    public void setReturnerName(String returnerName) {
        this.returnerName = returnerName;
    }

    public void setTransactionId(String transactionId) 
    {
        this.transactionId = transactionId;
    }

    public String getTransactionId() 
    {
        return transactionId;
    }
    public void setAssetNumber(String assetNumber)
    {
        this.assetNumber = assetNumber;
    }

    public String getAssetNumber()
    {
        return assetNumber;
    }
    public void setTransactionType(String transactionType) 
    {
        this.transactionType = transactionType;
    }

    public String getTransactionType() 
    {
        return transactionType;
    }
    public void setTransactionDate(Date transactionDate) 
    {
        this.transactionDate = transactionDate;
    }

    public Date getTransactionDate() 
    {
        return transactionDate;
    }
    public void setBorrower(String borrower) 
    {
        this.borrower = borrower;
    }

    public String getBorrower() 
    {
        return borrower;
    }
    public void setReturnDate(Date returnDate) 
    {
        this.returnDate = returnDate;
    }

    public Date getReturnDate() 
    {
        return returnDate;
    }
    public void setReturner(String returner) 
    {
        this.returner = returner;
    }

    public String getReturner() 
    {
        return returner;
    }

    @Override
    public String toString() {
        return "AssetTransactionRecord{" +
                "transactionId='" + transactionId + '\'' +
                ", assetNumber='" + assetNumber + '\'' +
                ", assetName='" + assetName + '\'' +
                ", transactionType='" + transactionType + '\'' +
                ", transactionDate=" + transactionDate +
                ", borrower='" + borrower + '\'' +
                ", borrowerName='" + borrowerName + '\'' +
                ", department='" + department + '\'' +
                ", returnDate=" + returnDate +
                ", returner='" + returner + '\'' +
                ", returnerName='" + returnerName + '\'' +
                '}';
    }


}
